package sanshui.system.trade.db.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import sanshui.system.trade.db.entity.TradeHisPosition;
import sanshui.system.trade.db.entity.TradeHisPositionExample;

public interface TradeHisPositionMapper {
    long countByExample(TradeHisPositionExample example);

    int deleteByExample(TradeHisPositionExample example);

    int deleteByPrimaryKey(Long positionNo);

    int insert(TradeHisPosition record);

    int insertSelective(TradeHisPosition record);

    List<TradeHisPosition> selectByExampleWithRowbounds(TradeHisPositionExample example, RowBounds rowBounds);

    List<TradeHisPosition> selectByExample(TradeHisPositionExample example);

    TradeHisPosition selectByPrimaryKey(Long positionNo);

    int updateByExampleSelective(@Param("record") TradeHisPosition record, @Param("example") TradeHisPositionExample example);

    int updateByExample(@Param("record") TradeHisPosition record, @Param("example") TradeHisPositionExample example);

    int updateByPrimaryKeySelective(TradeHisPosition record);

    int updateByPrimaryKey(TradeHisPosition record);
}